<@log.uploadList userId=userId channel=channel fileTypes=fileTypes originalName=originalName filePath=filePath orderField=orderField orderType=orderType pageIndex=pageNum pageSize=numPerPage>
<div class="pageHeader card">
    <form class="pagerForm" autocomplete="off" onsubmit="return navTabSearch(this);" method="post">
        <#include "../include_page/parameters.html"/>
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label><@t.page 'user'/>:</label>
                    <#include "../include_page/userId.html"/>
                </li>
                <li>
                    <label><@t.page 'channel'/>:</label>
                    <input type="text" name="channel" value="${channel!}"/>
                </li>
                <li>
                    <label><@t.page 'file_type'/>:</label>
                    <#list ['image','video','audio','other'] as a>
                        <label>
                            <input <@t.compare fileTypes a 'checked="checked"'/> name="fileTypes" value="${a}" type="checkbox"/>
                            <@t.page 'file_type.'+a/>
                        </label>
                    </#list>
                </li>
                <li>
                    <label><@t.page 'file.original_name'/>:</label>
                    <input type="text" name="originalName" value="${originalName!}"/>
                </li>
                <li>
                    <label><@t.page 'file_path'/>:</label>
                    <input type="text" name="filePath" value="${filePath!}"/>
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <button type="submit" class="buttonActive"><@t.page 'button.search'/></button>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="card">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a href="logUpload/delete?_csrf=<@tools.csrfToken admin=true/>" title="<@t.page 'confirm.batch_delete'/>" target="selectedTodo" rel="ids"><i class="icon-trash icon-large"></i><@t.page 'button.batch_delete'/></a></li>
        </ul>
    </div>
    <table class="table" width="100%" layoutH orderField="${orderField!}" orderType="${orderType!}">
        <thead>
            <tr>
                <th width="20"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th><@t.page 'user.id'/></th>
                <th><@t.page 'user.nickname'/></th>
                <th><@t.page 'channel'/></th>
                <th><@t.page 'file_type'/></th>
                <th><@t.page 'file.original_name'/></th>
                <th orderField="fileSize"><@t.page 'file.size'/></th>
                <th>IP</th>
                <th orderField="createDate"><@t.page 'log.create_date'/></th>
                <th><@t.page 'file_path'/></th>
            </tr>
        </thead>
        <tbody>
            <#list page.list as a>
                <@t.merge 'userIds' a.userId!/>
            </#list>
            <@sys.user ids=t.userIds!><#assign userMap=map!/></@sys.user>
            <#list page.list as a>
            <tr>
                <td><input name="ids" value="${a.id}" type="checkbox"></td>
                <td>${a.userId!}</td>
                <td>
                    ${(userMap[a.userId?string].nickname)!}
                </td>
                <td>
                    ${a.channel!}
                </td>
                <td>
                    <@t.page 'file_type.'+a.fileType/>
                </td>
                <td>${a.originalName!}</td>
                <td><@t.fileSize a.fileSize/><#if a.width?has_content&&a.height?has_content>(${a.width}*${a.height})</#if></td>
                <td>
                    <div class="box">
                        <p>${a.ip!}</p>
                        <p>${(getIpRegion(a.ip).address)!}</p>
                    </div>
                </td>
                <td>${a.createDate!}</td>
                <td>
                    <a href="cmsWebFile/list.html?path=${a.filePath?keep_before_last('/')}" target="navTab" rel="cmsWebFile/list" icon="<i class='icon-globe icon-large'></i>" title="<@t.page 'webfile'/>">
                        ${(a.filePath)!}
                    </a>
                    <a href="${getUrl(a.filePath)!}" target="_blank"><i class="icon-external-link"></i></a>
                </td>
            </tr>
            </#list>
        </tbody>
    </table>
    <#include "../include_page/page.html"/>
</div>
</@log.uploadList>